export default {
    state: {
        isLogin: false,
        username: '',
        userId: '',
        title: '222'
        
    },
    getters: {
        isLogin: state => state.isLogin,
        username: state => state.username,
        userId: state => state.userId,
    },
    mutations: {
        isLogin: (state, payload) => {
            state.isLogin = payload;
        }, 
        username: (state, payload) => {
            state.username = payload;
        }, 
        userId: (state, payload) => {
            state.userId = payload;
        },
    }
}
